/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_event_pricing_strategy.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_EVENT_PRICING_STRATEGY
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_event_pricing_strategy.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PPM_EVENT_PRICING_STRATEGY::CTable_PPM_EVENT_PRICING_STRATEGY( )
 :NPCRecordSet( )
{
  setTableName( "PPM_EVENT_PRICING_STRATEGY" );
  prepareTable();
  prepareQuery();
 
  EVENT_PRICING_STRATEGY_ID.setField( "EVENT_PRICING_STRATEGY_ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( EVENT_PRICING_STRATEGY_ID );
  makeKeyItem( EVENT_PRICING_STRATEGY_ID ); 
  PRICING_COMBINE_ID.setField( "PRICING_COMBINE_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PRICING_COMBINE_ID );
  EVENT_PRICING_STRATEGY_NAME.setField( "EVENT_PRICING_STRATEGY_NAME", DATA_CHAR, 50, 0 );
  makeTableItem( EVENT_PRICING_STRATEGY_NAME );
  EVENT_PRICING_STRATEGY_DESC.setField( "EVENT_PRICING_STRATEGY_DESC", DATA_CHAR, 4000, 0 );
  makeTableItem( EVENT_PRICING_STRATEGY_DESC );
}


CTable_PPM_EVENT_PRICING_STRATEGY::CTable_PPM_EVENT_PRICING_STRATEGY( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_EVENT_PRICING_STRATEGY" );
  prepareTable();
  prepareQuery();
 
  EVENT_PRICING_STRATEGY_ID.setField( "EVENT_PRICING_STRATEGY_ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( EVENT_PRICING_STRATEGY_ID );
  makeKeyItem( EVENT_PRICING_STRATEGY_ID ); 
  PRICING_COMBINE_ID.setField( "PRICING_COMBINE_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PRICING_COMBINE_ID );
  EVENT_PRICING_STRATEGY_NAME.setField( "EVENT_PRICING_STRATEGY_NAME", DATA_CHAR, 50, 0 );
  makeTableItem( EVENT_PRICING_STRATEGY_NAME );
  EVENT_PRICING_STRATEGY_DESC.setField( "EVENT_PRICING_STRATEGY_DESC", DATA_CHAR, 4000, 0 );
  makeTableItem( EVENT_PRICING_STRATEGY_DESC );
}

CTable_PPM_EVENT_PRICING_STRATEGY::~CTable_PPM_EVENT_PRICING_STRATEGY( )
{
    close();
}

